package com.ruoyi.dgw.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 饲料对象 fodder
 * 
 * @author ll
 * @date 2022-01-07
 */
public class Fodder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 养殖户名称 */
    @Excel(name = "养殖户名称")
    private String userName;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 饲料名称 */
    @Excel(name = "饲料名称")
    private String fodderName;

    /** 生产厂家 */
    @Excel(name = "生产厂家")
    private String productionVender;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date productionTime;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String productionPjone;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setFodderName(String fodderName) 
    {
        this.fodderName = fodderName;
    }

    public String getFodderName() 
    {
        return fodderName;
    }
    public void setProductionVender(String productionVender) 
    {
        this.productionVender = productionVender;
    }

    public String getProductionVender() 
    {
        return productionVender;
    }
    public void setProductionTime(Date productionTime) 
    {
        this.productionTime = productionTime;
    }

    public Date getProductionTime() 
    {
        return productionTime;
    }
    public void setProductionPjone(String productionPjone) 
    {
        this.productionPjone = productionPjone;
    }

    public String getProductionPjone() 
    {
        return productionPjone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userName", getUserName())
            .append("address", getAddress())
            .append("phone", getPhone())
            .append("fodderName", getFodderName())
            .append("productionVender", getProductionVender())
            .append("productionTime", getProductionTime())
            .append("productionPjone", getProductionPjone())
            .toString();
    }
}
